AI-Based Smart Assessment and Rehabilitation Training